import {musicRequest} from './index';


export function getBanners() {
  return musicRequest.get("/banner", {
    type: 2
  })
}

export function getRankings(idx) {
  return musicRequest.get("/top/list", {
    idx
  })
}

// cat -> category 类别
export function getSongMenu(cat = "全部", limit = 6, offset = 0) {
  return musicRequest.get("/top/playlist", {
    cat,
    limit,
    offset
  })
}

export function getSongMenuDetail(id) {
  return musicRequest.get("/playlist/detail/dynamic", {
    id
  })
}

export function getSongDetail(ids) {
  return musicRequest.get("/song/detail", {
    ids
  })
}

// 获取歌曲歌词
export function getLyrics(id) {
  return musicRequest.get('/lyric', {
    id
  })
}